export const getUserInfo = (): any => {
  return new Promise((res) => {
    res({
      code: '0',
      data: {
        logoutUrl: '',
        realname: '🚌',
        userIcon:
          'https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1604325971100&di=0ee67b8d43754ad95814376c6e24af21&imgtype=0&src=http%3A%2F%2Fimg.mp.itc.cn%2Fupload%2F20170217%2F5aa43a7f44c44f52b605f780343ab3cd_th.jpeg',
        userId: 'ids',
      },
      message: '',
    })
  })
}

export const getUserPermission = (): any => {
  return new Promise((res) => {
    res({
      code: '0',
      data: [
        {
          val: {
            id: 1,
            parentId: 0,
            permissionCode: 'home',
            permissionName: '首页',
            permissionUrl: '/home',
            permissionType: '1',
          },
          children: [],
          treeId: '1',
        },
      ],
      message: '',
    })
  })
}
